package com.hsy.cookie_session.service.Impl;

import com.hsy.cookie_session.enity.User;
import com.hsy.cookie_session.mapper.UserMapper;
import com.hsy.cookie_session.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User getUserById(String username) {
        User user = userMapper.getUserById(username);
        return user;
    }

    @Override
    public List<User> getUser() {
        return userMapper.getUser();
    }
}
